var CONST = {
	"DLG_SETTINGS_00": 0,
	"DLG_SETTINGS_03": 1,
	"DLG_SETTINGS_04": 2,
	"DLG_SETTINGS_1_GENERAL_02": 3,
	"DLG_SETTINGS_1_GENERAL_10": 4,
	"DLG_SETTINGS_1_GENERAL_11": 5,
	"DLG_SETTINGS_1_GENERAL_12": 6,
	"DLG_SETTINGS_1_GENERAL_13": 7,
	"DLG_SETTINGS_1_GENERAL_17": 8,
	"DLG_SETTINGS_1_GENERAL_18": 9,
	"DLG_SETTINGS_1_GENERAL_19": 10,
	"DLG_SETTINGS_1_GENERAL_20": 11,
	"DLG_SETTINGS_2_UI_02": 12,
	"DLG_SETTINGS_2_UI_05": 13,
	"DLG_SETTINGS_2_UI_06": 14,
	"DLG_SETTINGS_2_UI_15": 15,
	"DLG_SETTINGS_2_UI_16": 16,
	"DLG_SETTINGS_3_PATHS_01": 17,
	"DLG_SETTINGS_3_PATHS_02": 18,
	"DLG_SETTINGS_3_PATHS_06": 19,
	"DLG_SETTINGS_3_PATHS_07": 20,
	"DLG_SETTINGS_3_PATHS_10": 21,
	"DLG_SETTINGS_3_PATHS_11": 22,
	"DLG_SETTINGS_3_PATHS_12": 23,
	"DLG_SETTINGS_3_PATHS_15": 24,
	"DLG_SETTINGS_3_PATHS_18": 25,
	"DLG_SETTINGS_3_PATHS_19": 26,
	"DLG_SETTINGS_4_CONN_01": 27,
	"DLG_SETTINGS_4_CONN_02": 28,
	"DLG_SETTINGS_4_CONN_04": 29,
	"DLG_SETTINGS_4_CONN_05": 30,
	"DLG_SETTINGS_4_CONN_06": 31,
	"DLG_SETTINGS_4_CONN_07": 32,
	"DLG_SETTINGS_4_CONN_08": 33,
	"DLG_SETTINGS_4_CONN_09": 34,
	"DLG_SETTINGS_4_CONN_11": 35,
	"DLG_SETTINGS_4_CONN_13": 36,
	"DLG_SETTINGS_4_CONN_15": 37,
	"DLG_SETTINGS_4_CONN_16": 38,
	"DLG_SETTINGS_4_CONN_18": 39,
	"DLG_SETTINGS_4_CONN_20": 40,
	"DLG_SETTINGS_4_CONN_21": 41,
	"DLG_SETTINGS_5_BANDWIDTH_01": 42,
	"DLG_SETTINGS_5_BANDWIDTH_02": 43,
	"DLG_SETTINGS_5_BANDWIDTH_03": 44,
	"DLG_SETTINGS_5_BANDWIDTH_05": 45,
	"DLG_SETTINGS_5_BANDWIDTH_07": 46,
	"DLG_SETTINGS_5_BANDWIDTH_08": 47,
	"DLG_SETTINGS_5_BANDWIDTH_10": 48,
	"DLG_SETTINGS_5_BANDWIDTH_11": 49,
	"DLG_SETTINGS_5_BANDWIDTH_14": 50,
	"DLG_SETTINGS_5_BANDWIDTH_15": 51,
	"DLG_SETTINGS_5_BANDWIDTH_17": 52,
	"DLG_SETTINGS_6_BITTORRENT_01": 53,
	"DLG_SETTINGS_6_BITTORRENT_02": 54,
	"DLG_SETTINGS_6_BITTORRENT_03": 55,
	"DLG_SETTINGS_6_BITTORRENT_04": 56,
	"DLG_SETTINGS_6_BITTORRENT_05": 57,
	"DLG_SETTINGS_6_BITTORRENT_06": 58,
	"DLG_SETTINGS_6_BITTORRENT_07": 59,
	"DLG_SETTINGS_6_BITTORRENT_08": 60,
	"DLG_SETTINGS_6_BITTORRENT_10": 61,
	"DLG_SETTINGS_6_BITTORRENT_11": 62,
	"DLG_SETTINGS_6_BITTORRENT_13": 63,
	"DLG_SETTINGS_7_QUEUEING_01": 64,
	"DLG_SETTINGS_7_QUEUEING_02": 65,
	"DLG_SETTINGS_7_QUEUEING_04": 66,
	"DLG_SETTINGS_7_QUEUEING_06": 67,
	"DLG_SETTINGS_7_QUEUEING_07": 68,
	"DLG_SETTINGS_7_QUEUEING_09": 69,
	"DLG_SETTINGS_7_QUEUEING_11": 70,
	"DLG_SETTINGS_7_QUEUEING_12": 71,
	"DLG_SETTINGS_7_QUEUEING_13": 72,
	"DLG_SETTINGS_8_SCHEDULER_01": 73,
	"DLG_SETTINGS_8_SCHEDULER_04": 74,
	"DLG_SETTINGS_8_SCHEDULER_05": 75,
	"DLG_SETTINGS_8_SCHEDULER_07": 76,
	"DLG_SETTINGS_8_SCHEDULER_09": 77,
	"DLG_SETTINGS_9_WEBUI_01": 78,
	"DLG_SETTINGS_9_WEBUI_02": 79,
	"DLG_SETTINGS_9_WEBUI_03": 80,
	"DLG_SETTINGS_9_WEBUI_05": 81,
	"DLG_SETTINGS_9_WEBUI_07": 82,
	"DLG_SETTINGS_9_WEBUI_09": 83,
	"DLG_SETTINGS_9_WEBUI_10": 84,
	"DLG_SETTINGS_9_WEBUI_12": 85,
	"DLG_SETTINGS_A_ADVANCED_01": 86,
	"DLG_SETTINGS_B_ADV_UI_07": 87,
	"DLG_SETTINGS_C_ADV_CACHE_01": 88,
	"DLG_SETTINGS_C_ADV_CACHE_02": 89,
	"DLG_SETTINGS_C_ADV_CACHE_03": 90,
	"DLG_SETTINGS_C_ADV_CACHE_05": 91,
	"DLG_SETTINGS_C_ADV_CACHE_06": 92,
	"DLG_SETTINGS_C_ADV_CACHE_07": 93,
	"DLG_SETTINGS_C_ADV_CACHE_08": 94,
	"DLG_SETTINGS_C_ADV_CACHE_09": 95,
	"DLG_SETTINGS_C_ADV_CACHE_10": 96,
	"DLG_SETTINGS_C_ADV_CACHE_11": 97,
	"DLG_SETTINGS_C_ADV_CACHE_12": 98,
	"DLG_SETTINGS_C_ADV_CACHE_13": 99,
	"DLG_SETTINGS_C_ADV_CACHE_14": 100,
	"DLG_SETTINGS_C_ADV_CACHE_15": 101,
	"DLG_TORRENTPROP_00": 102,
	"DLG_TORRENTPROP_01": 103,
	"DLG_TORRENTPROP_02": 104,
	"DLG_TORRENTPROP_1_GEN_01": 105,
	"DLG_TORRENTPROP_1_GEN_03": 106,
	"DLG_TORRENTPROP_1_GEN_04": 107,
	"DLG_TORRENTPROP_1_GEN_06": 108,
	"DLG_TORRENTPROP_1_GEN_08": 109,
	"DLG_TORRENTPROP_1_GEN_10": 110,
	"DLG_TORRENTPROP_1_GEN_11": 111,
	"DLG_TORRENTPROP_1_GEN_12": 112,
	"DLG_TORRENTPROP_1_GEN_14": 113,
	"DLG_TORRENTPROP_1_GEN_16": 114,
	"DLG_TORRENTPROP_1_GEN_17": 115,
	"DLG_TORRENTPROP_1_GEN_18": 116,
	"DLG_TORRENTPROP_1_GEN_19": 117,
	"FI_COL_DONE": 118,
	"FI_COL_NAME": 119,
	"FI_COL_PCT": 120,
	"FI_COL_PRIO": 121,
	"FI_COL_SIZE": 122,
	"FI_PRI0": 123,
	"FI_PRI1": 124,
	"FI_PRI2": 125,
	"FI_PRI3": 126,
	"GN_TP_01": 127,
	"GN_TP_02": 128,
	"GN_TP_03": 129,
	"GN_TP_04": 130,
	"GN_TP_05": 131,
	"GN_TP_06": 132,
	"GN_TP_07": 133,
	"GN_TP_08": 134,
	"GN_TRANSFER": 135,
	"GN_XCONN": 136,
	"MAIN_TITLEBAR_SPEED": 137,
	"MENU_SHOW_CATEGORY": 138,
	"MENU_SHOW_DETAIL": 139,
	"ML_DELETE_DATA": 140,
	"ML_FORCE_RECHECK": 141,
	"ML_FORCE_START": 142,
	"ML_LABEL": 143,
	"ML_PAUSE": 144,
	"ML_PROPERTIES": 145,
	"ML_REMOVE": 146,
	"ML_REMOVE_AND": 147,
	"ML_START": 148,
	"ML_STOP": 149,
	"OV_CAT_ACTIVE": 150,
	"OV_CAT_ALL": 151,
	"OV_CAT_COMPL": 152,
	"OV_CAT_DL": 153,
	"OV_CAT_INACTIVE": 154,
	"OV_CAT_NOLABEL": 155,
	"OV_COL_AVAIL": 156,
	"OV_COL_DONE": 157,
	"OV_COL_DOWNLOADED": 158,
	"OV_COL_DOWNSPD": 159,
	"OV_COL_ETA": 160,
	"OV_COL_LABEL": 161,
	"OV_COL_NAME": 162,
	"OV_COL_ORDER": 163,
	"OV_COL_PEERS": 164,
	"OV_COL_REMAINING": 165,
	"OV_COL_SEEDS": 166,
	"OV_COL_SEEEDS_PEERS": 167,
	"OV_COL_SHARED": 168,
	"OV_COL_SIZE": 169,
	"OV_COL_STATUS": 170,
	"OV_COL_UPPED": 171,
	"OV_COL_UPSPD": 172,
	"OV_CONFIRM_DELETEDATA_MULTIPLE": 173,
	"OV_CONFIRM_DELETEDATA_ONE": 174,
	"OV_CONFIRM_DELETE_MULTIPLE": 175,
	"OV_CONFIRM_DELETE_ONE": 176,
	"OV_FL_CHECKED": 177,
	"OV_FL_DOWNLOADING": 178,
	"OV_FL_ERROR": 179,
	"OV_FL_FINISHED": 180,
	"OV_FL_PAUSED": 181,
	"OV_FL_QUEUED": 182,
	"OV_FL_SEEDING": 183,
	"OV_FL_STOPPED": 184,
	"OV_NEWLABEL_CAPTION": 185,
	"OV_NEWLABEL_TEXT": 186,
	"OV_NEW_LABEL": 187,
	"OV_REMOVE_LABEL": 188,
	"OV_TABS": 189,
	"OV_TB_ADDTORR": 190,
	"OV_TB_PAUSE": 191,
	"OV_TB_PREF": 192,
	"OV_TB_REMOVE": 193,
	"OV_TB_START": 194,
	"OV_TB_STOP": 195,
	"SIZE_GB": 196,
	"SIZE_KB": 197,
	"SIZE_MB": 198,
	"ST_CAPT_ADVANCED": 199,
	"ST_CAPT_BANDWIDTH": 200,
	"ST_CAPT_CONNECTION": 201,
	"ST_CAPT_DISK_CACHE": 202,
	"ST_CAPT_FOLDER": 203,
	"ST_CAPT_GENERAL": 204,
	"ST_CAPT_SCHEDULER": 205,
	"ST_CAPT_SEEDING": 206,
	"ST_CAPT_TRANSFER": 207,
	"ST_CAPT_WEBUI": 208,
	"ST_CBO_ENCRYPTIONS": 209,
	"ST_CBO_PROXY": 210,
	"ST_COL_NAME": 211,
	"ST_COL_VALUE": 212,
	"ST_SEEDTIMES_HOURS": 213,
	"ST_SEEDTIMES_IGNORE": 214,
	"ST_SEEDTIMES_MINUTES": 215,
	"TIME_DAYS_HOURS": 216,
	"TIME_HOURS_MINS": 217,
	"TIME_MINS_SECS": 218,
	"TIME_SECS": 219,
	"TIME_WEEKS_DAYS": 220,
	"TIME_YEARS_WEEKS": 221,
	"TORRENT_HASH": 0,
	"TORRENT_STATUS": 1,
	"TORRENT_NAME": 2,
	"TORRENT_SIZE": 3,
	"TORRENT_PROGRESS": 4,
	"TORRENT_DOWNLOADED": 5,
	"TORRENT_UPLOADED": 6,
	"TORRENT_RATIO": 7,
	"TORRENT_UPSPEED": 8,
	"TORRENT_DOWNSPEED": 9,
	"TORRENT_ETA": 10,
	"TORRENT_LABEL": 11,
	"TORRENT_PEERS_CONNECTED": 12,
	"TORRENT_PEERS_SWARM": 13,
	"TORRENT_SEEDS_CONNECTED": 14,
	"TORRENT_SEEDS_SWARM": 15,
	"TORRENT_AVAILABILITY": 16,
	"TORRENT_QUEUE_POSITION": 17,
	"TORRENT_REMAINING": 18,
	"FILEPRIORITY_SKIP": 0,
	"FILEPRIORITY_LOW": 1,
	"FILEPRIORITY_NORMAL": 2,
	"FILEPRIORITY_HIGH": 3,
	"STATE_STARTED": 1,
	"STATE_CHECKING": 2,
	"STATE_ERROR": 16,
	"STATE_PAUSED": 32,
	"STATE_QUEUED": 64
};

if (!console) {
	var console = {};
}

(function() {

	console.log = console.log || function(str) {
		if (window.opera) {
			opera.postError(str);
		} else {
			alert(str);
		}
	};

	var timers = {};
	console.time = console.time || function(name) {
		if (name == "") return;
		timers[name] = $time();
	};
	
	console.timeEnd = console.timeEnd || function(name) {
		if (name == "" || !timers.hasOwnProperty(name)) return;
		console.log(name + ": " + ($time() - timers[name]) + "ms");
		delete timers[name];
	};
	
	console.assert = console.assert || function() {
		var args = $A(arguments), expr = args.shift();
		if (!expr) {
			throw new Error(false);
		}
	};
	
})();